/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.cput.tp.patterns.creational.prototype;

/**
 *
 * @author Malotana
 */
public class Dog implements Prototype{

    private String dogName;
    
    public Dog(String name){
        this.dogName = name;
    }
    
    @Override
    public Prototype doClone() {
        return new Dog(dogName);
    }
    
   public String toString(){
       return ("This dog says "+dogName);
   }
    
}
